public class Prime {
    public static void main(String[] args) {
        int i = 0;
        int k = 0;
        for (i = 2; i <= 100; i++) {
            int flg = 1;
            for (k = 2; k < i; k++) {
                if (i % k == 0) {
                    flg = 0;
                    break;
                }
            }
            if (flg == 1) {
                System.out.println(i+"是素数");
            }
        }
    }
}